package com.zjl.legendary.entity;

import java.util.Date;

/**
 * 用户表实体类
 * @author zhoujingluo
 * @date 2021/5/25 21:45
 */
public class User {
    
    private Integer id ;
    private String nickname ;
    private String password ;
    private Integer flag ;
    private Date ctime ;

    public User() {
    }

    public User(String nickname, String password, Integer flag, Date ctime) {
        this.nickname = nickname;
        this.password = password;
        this.flag = flag;
        this.ctime = ctime;
    }

    public User(Integer id, String nickname, String password, Integer flag, Date ctime) {
        this.id = id;
        this.nickname = nickname;
        this.password = password;
        this.flag = flag;
        this.ctime = ctime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nickname='" + nickname + '\'' +
                ", password='" + password + '\'' +
                ", flag=" + flag +
                ", ctime=" + ctime +
                '}';
    }
}
